package com.lagou.edu.mapper;


import org.apache.ibatis.annotations.*;

@Mapper
public interface UserMapper {
    @Insert("insert into  msgCode(registCode,email,systime) values (#{registCode},#{email},#{systime}) ")
    public void insertMsgCode(@Param("registCode") String registCode, @Param("email") String email, @Param("systime") Long systime);

    @Delete("delete  from msgCode where   email = #{email} ")
    public void deleteMsgCode(@Param("email") String email);

    @Select("select * from token_record where token = #{token} ")
    public String getToken(@Param("token") String token);

    @Insert("insert into  USER(email,PASSWORD) values (#{email},#{PASSWORD}) ")
    public void insertUSER(@Param("email") String email, @Param("PASSWORD") String PASSWORD);
}
